package com.example.myapplication10;
public class Book {
    private String title;
    private String author;
    private int coverResId;
    private String desc;

    public Book(String title, String author, int coverResId, String desc) {
        this.title = title;
        this.author = author;
        this.coverResId = coverResId;
        this.desc = desc;
    }

    // Getter 方法
    public String getTitle() { return title; }
    public String getAuthor() { return author; }
    public int getCoverResId() { return coverResId; }
    public String getDesc() { return desc; } // 新增简介的 getter
}